﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReviewTeacherEval.aspx.cs" Inherits="Credit_Teacher_RuleSettings_ReviewTeacherEval" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>预览评价规则</title>
       <link href="../../Common/css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .noneClick {
            cursor: default;
        }
    </style>
    <script type="text/javascript" src="../../Common/js/jquery.js"></script>
    <script type="text/javascript" src="../../Common/js/common.js"></script>
    <script type="text/javascript" src="../../../Common/js/TableForExport.js"></script>
    <script type="text/javascript" src="../../../Common/js/jsUtil.js"></script>
    <script language="javascript">
    function getExcel()
    {
        var cells = GetTableInfo(document.getElementById("tblHead"));
        if(cells!=null)
        {
            
            var str = document.getElementById('labtitle').innerText;
            PageMethods.GetExcel(cells,str,"被评人:",function(result){
            document.getElementById('downloadf').src = "";
            document.getElementById('downloadf').src = "../../../PostFileBytes.aspx";
//            window.location.href = "../../../PostFileBytes.aspx";
            },function(err){alert(err._message);});
        }
    }
    </script>
</head>
<body>
<div style="overflow-y:auto;overflow-x:none;height:98%;">
    <form id="form1" runat="server">
            <div class="pageBody">
            <div class="mainWarp" style="height:96%;padding-top:5px;padding-left:5px;" >
                <table >
                <tr>
                <td  style="padding-left:4px;">
                    <h3><label id="labtitle"><%=Common.ConvertYearAndTerm(SchoolCommon.Sch_SchoolInfo.SchoolYear, SchoolCommon.Sch_SchoolInfo.SchoolTerm) + title.Trim() +"表"%></label></h3>
                </td>
                <td style="padding-left:10px;">
                    <asp:UpdateProgress ID="UpdateProgress1"  runat="server" AssociatedUpdatePanelID="UpdatePanel1"><progresstemplate><img src="../../Common/images/ajaxloading.gif" /></progresstemplate></asp:UpdateProgress>
                </td>
                </tr>
                </table><div>
                    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
                    </asp:ScriptManager>
                </div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <HeaderTemplate>
                            <div style="overflow-y:auto;overflow-x:none;height:98%;">
                                <table id="tblHead" border="0" cellpadding="0" cellspacing="1"  style="width:800px;" class="useList">
                                    <tr>
                                        <th width="20%" style="text-align: left; padding-left: 5px;">
                                            类别</th>
                                        <th width="70%" style="text-align: left; padding-left: 5px;">
                                            内容
                                        </th>
                                        <th width="10%" style="text-align: right; padding-right: 5px;">
                                            评分
                                        </th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                    <%# GetContent((int)Eval("RID"),Eval("Caption").ToString()) %>                              
                            </ItemTemplate>
                            <FooterTemplate>
                                <tr style="background-color:White;"  onclick="">                               
                                    <td colspan="2" width='90%' style="text-align:left; font-weight:normal;padding-left:5px;font-weight:bold;"> 
                                         总计：
                                    </td>
                                    <td></td>
                                    <%--<%# GetFooter()%>--%>
                                </tr>
                                </table></div>
                            </FooterTemplate>
                        </asp:Repeater>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnBind" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
                <div style="display: none;">
                  <asp:Button ID="btnBind" runat="server" OnClick="btnBind_Click" Text="btnBind" />

                </div>

            </div>
        </div>
        
    </form>
    </div>
    <div id="upInputPop" class="layoutWarp" style="display: none">
        <iframe src="" name="downloadf" id="downloadf" style="height: 80%;width: 95%;overflow-y:auto;overflow-x:none;" frameborder="0"   ></iframe>
    </div>
</body>
</html>
<script language="javascript">
if(request("download")==="1")
{
    getExcel();
}
</script>